package com.cheyun.netsalev3.bean

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.cheyun.netsalev3.BR
import com.cheyun.netsalev3.R

/**
 * @author Michael
 * @date  2018/11/7 - 15:19.
 */
data class NameIdParam(var name: String, var id: String, var imge: Int? = R.drawable.b01_6_zdyxsx_tos,var value:String?="") : BaseObservable() {
    override fun toString(): String {
        return "NameIdParam(name=" + this.name + ", id=" + this.id + ",IsSelect=" + this.IsSelect + ")"
    }

    @get:Bindable
    var IsSelect: Boolean? = false
        set(isSelect) {
            field = isSelect
            notifyPropertyChanged(BR.isSelect)
        }

}